import request from "../utils/request";
type API<T=any> = (...args:T[])=>Promise<any>

//所有用户信息
export const getUserInfoApi = ()=>{
    return request('/user/findAll')
}

//删除用户
export const delUserApi:API<{uid:string}> = (body)=>{
    return request("/manage/deltId",{
        method:"post",
        body
    })
}

//重置密码
export const resetPwdApi:API<{builder: string,phone: string}>=(body)=>{
    return request('/manage/httpverify',{
        method:'post',
        body
    })
}